package st.yushao.restaurant.common;

import st.yushao.restaurant.dao.SysAdminDaoService;
import st.yushao.restaurant.vo.SysAdminVO;

public class SystemContext {

    private static SysAdminDaoService sad;

    private static SysAdminVO saVO;

    /**
     * @return the sad
     */
    public SysAdminDaoService getSad() {
        return sad;
    }

    /**
     * @param sad the sad to set
     */
    public void setSad(SysAdminDaoService sad) {
        SystemContext.sad = sad;
    }

    /**
     * @return the saVO
     */
    public static SysAdminVO getSaVO() {
        if (saVO == null) {
            saVO = SystemContext.sad.getSysAdminInfo();
        }
        return saVO;
    }
}
